from selenium.webdriver.common.by import By

from base import Base
class Page(Base):
    def ss(self):
        loc=(By.ID,'cn.xuexi.android:id/text')
        ele=self.find_ele(loc)
        return ele
    def sr(self):
        loc=(By.CLASS_NAME,'android.widget.EditText')
        ele=self.find_ele(loc)
        return ele
    def dj(self):
        loc=(By.XPATH,'//android.widget.TextView[@resource-id="cn.xuexi.android:id/tv_suggest_name"]')
        ele=self.find_ele(loc)
        return ele
    def fh(self):
        loc=(By.ANDROID_UIAUTOMATOR,'new UiSelector().resourceId("com.kongfz.app:id/iv_back")')
        ele=self.find_ele(loc)
        return ele
    def hui(self):
        loc=(By.ACCESSIBILITY_ID,'返回')
        ele=self.find_ele(loc)
        return ele
    def dy(self):
        loc=(By.ID,'android:id/search_src_text')
        ele=self.find_ele(loc)
        return ele